package com.wy.service.impl;

import com.wy.service.FileService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class FileServiceImpl implements FileService {

    @Override
    public String handle(MultipartFile multipartFile) {
        String fileName = multipartFile.getName();
        String originalFilename = multipartFile.getOriginalFilename();
        long size = multipartFile.getSize();

        StringBuilder str = new StringBuilder();
        str.append("fileName:").append(fileName).append("  ,originalFilename:").append(originalFilename).append("  ,fileSize:").append(size);
        return str.toString();
    }
}
